Looking for the right word to describe this concept. "Type" and "Invoked" don't seem to cut it. I want to say "DXL can be invoked in the following XYZs:"
"Context" isn't right as that conflicts with the notion Object/Module/Folder/Project/Database "Context": some DXL must run in the context of a current Module or Folder etc. -Louie llandale - Mon Nov 04 09:58:54 EST 2013 |
Re: Looking for a Word ( do you really need a word Louie ?? "DXL can be invoked from:
or on demand (e.g pulldown menu ... )"
) |
Re: Looking for a Word pommCannelle - Mon Nov 04 11:01:31 EST 2013 ( do you really need a word Louie ?? "DXL can be invoked from:
or on demand (e.g pulldown menu ... )"
) Yes. Forming a header for my DXL files; Are these "Invoke Types"? "DXL Types"? LaunchModes? |
Re: Looking for a Word I just realized you are really only looking for a wording ;-) Well I would say something like LaunchMode or DXL Environment or "where was the code started from". Anyway the below answer may give the discussion another spin ... I see here, that there are really a lot of informations about the execution environment of a DXL script, that can be of interest. The question from where a DXL was started can have a difficult answer, e.g. when you look at the different layout DXL passes or stuff like that. I see that you might want to have Layout DXL that can be used as Attribute DXL and vice versa. But what is the goal for the headers you are forming? That the code knows where it is running? There are some major differences between batch mode and interactive mode, but why would you have code that does stuff differently when running from a trigger or as a layout DXL? I can come up with certain ways to find out stuff about the running DXL, maybe it helps:
I found no way yet to get the difference between Tools / Edit DXL and code that has been run from a Module Menu without bad hacks. However I still do not see the whole point of differentiating between all those kinds. Are you trying to solve an actual problem? Regards, Mathias |
Re: Looking for a Word Mathias Mamsch - Mon Nov 04 20:02:26 EST 2013 I just realized you are really only looking for a wording ;-) Well I would say something like LaunchMode or DXL Environment or "where was the code started from". Anyway the below answer may give the discussion another spin ... I see here, that there are really a lot of informations about the execution environment of a DXL script, that can be of interest. The question from where a DXL was started can have a difficult answer, e.g. when you look at the different layout DXL passes or stuff like that. I see that you might want to have Layout DXL that can be used as Attribute DXL and vice versa. But what is the goal for the headers you are forming? That the code knows where it is running? There are some major differences between batch mode and interactive mode, but why would you have code that does stuff differently when running from a trigger or as a layout DXL? I can come up with certain ways to find out stuff about the running DXL, maybe it helps:
I found no way yet to get the difference between Tools / Edit DXL and code that has been run from a Module Menu without bad hacks. However I still do not see the whole point of differentiating between all those kinds. Are you trying to solve an actual problem? Regards, Mathias Mathias,
Didn't you just use the word Louie is looking for? DXL can be invoked in the following execution environments: ... I liked it!
/sekrbo
|
Re: Looking for a Word Mathias Mamsch - Mon Nov 04 20:02:26 EST 2013 I just realized you are really only looking for a wording ;-) Well I would say something like LaunchMode or DXL Environment or "where was the code started from". Anyway the below answer may give the discussion another spin ... I see here, that there are really a lot of informations about the execution environment of a DXL script, that can be of interest. The question from where a DXL was started can have a difficult answer, e.g. when you look at the different layout DXL passes or stuff like that. I see that you might want to have Layout DXL that can be used as Attribute DXL and vice versa. But what is the goal for the headers you are forming? That the code knows where it is running? There are some major differences between batch mode and interactive mode, but why would you have code that does stuff differently when running from a trigger or as a layout DXL? I can come up with certain ways to find out stuff about the running DXL, maybe it helps:
I found no way yet to get the difference between Tools / Edit DXL and code that has been run from a Module Menu without bad hacks. However I still do not see the whole point of differentiating between all those kinds. Are you trying to solve an actual problem? Regards, Mathias I'm looking to change "Context" below into some other word, since "Context" has the meaning of Current Object/Module/Folder/Project/Database that the script presumes when it starts. Scripts run from a Formal menu have a "Formal Module" as Context. First I want the DXL code file itself to state what kind of code it is intended to be run as. If the same file can be a Layout or an Attr-DXL then I want a comment that says so. "Intended Context" or something like that. Having the code determine how it was actually invoked is a different problem solved at run-time. The file above can run as layout or attr-DXL, but it needs to know which when running. I wrote the library code attached which does make use of some of your suggestions. I'll have to think about your TopContext(#4) or whatever your #8 is doing. batchMode is a special case of On Demand and I use that already to determine if dialog should be displayed or just presumed. -Louie Attachments fContext.inc |